<template>
  <div class="table-page-search-wrapper" style="margin-top: 20px">
    <a-form-model
      :class="{ ischeck: disableSubmit }"
      :model="projectItem"
      :label-col="labelCol"
      :wrapper-col="wrapperCol"
    >
      <!-- 资产总额 -->
      <a-row>
        <a-col span="12">
          <a-form-model-item label="资产总额">
            <a-row :gutter="12">
              <a-col span="11" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.zczeAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('zczeAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('zczeAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
              <a-col span="11" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.zczeSub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('zczeSub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('zczeSub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
        <a-col span="12">
          <a-form-model-item label="金额">
            <a-row>
              <a-col span="12" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.zczeMoneyAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('zczeMoneyAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('zczeMoneyAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
              <a-col span="12" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.zczeMoneySub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('zczeMoneySub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('zczeMoneySub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
      </a-row>
      <!-- 负债总额 -->
      <a-row>
        <a-col span="12">
          <a-form-model-item label="负债总额">
            <a-row :gutter="12">
              <a-col span="11" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.fzzeAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('fzzeAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('fzzeAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
              <a-col span="11" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.fzzeSub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('fzzeSub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('fzzeSub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
        <a-col span="12">
          <a-form-model-item label="金额">
            <a-row>
              <a-col span="12" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.fzzeMoneyAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('fzzeMoneyAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('fzzeMoneyAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
              <a-col span="12" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.fzzeMoneySub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('fzzeMoneySub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('fzzeMoneySub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
      </a-row>
      <!-- 带息负债 -->
      <a-row>
        <a-col span="12">
          <a-form-model-item label="带息负债">
            <a-row :gutter="12">
              <a-col span="11" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.dxfzAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('dxfzAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('dxfzAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
              <a-col span="11" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.dxfzSub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('dxfzSub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('dxfzSub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
        <a-col span="12">
          <a-form-model-item label="金额">
            <a-row>
              <a-col span="12" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.dxfzMoneyAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('dxfzMoneyAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('dxfzMoneyAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
              <a-col span="12" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.dxfzMoneySub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('dxfzMoneySub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('dxfzMoneySub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
      </a-row>
      <!-- 净利润 -->
      <a-row>
        <a-col span="12">
          <a-form-model-item label="净利润">
            <a-row :gutter="12">
              <a-col span="11" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.jlrAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('jlrAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('jlrAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
              <a-col span="11" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.jlrSub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('jlrSub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('jlrSub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;%</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
        <a-col span="12">
          <a-form-model-item label="金额">
            <a-row>
              <a-col span="12" class="item_line">
                <span>增：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.jlrMoneyAdd" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('jlrMoneyAdd')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('jlrMoneyAdd')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
              <a-col span="12" class="item_line">
                <span>减：</span>
                <a-input :disabled="disableSubmit" v-model="projectItem.jlrMoneySub" class="addandsub_input">
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonAfter"
                    class="btn_addandsub"
                    @click="addNumber('jlrMoneySub')"
                    icon="plus"
                  ></a-button>
                  <a-button
                    :disabled="disableSubmit"
                    slot="addonBefore"
                    class="btn_addandsub"
                    @click="subNumber('jlrMoneySub')"
                    icon="minus"
                  ></a-button>
                </a-input>
                <span>&nbsp;万元</span>
              </a-col>
            </a-row>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
  </div>
</template>

<script>
export default {
  name: 'AnalysisIndexrq',
  props: ['projectItem','disableSubmit'],
  data() {
    return {
      labelCol: { span: 4 },
      wrapperCol: { span: 20 },
    }
  },
  methods: {
    addNumber(mysite) {
      this.$emit('addNumber',mysite)
    },
    subNumber(mysite) {
      this.$emit('subNumber',mysite)
    },
  },
}
</script>

<style lang="less" scoped>
.btn_position {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.item_line {
  display: flex;
  align-items: center;
}
.addandsub_input {
  width: 130px;
  /deep/ .ant-input-group-addon {
    padding: 0;
  }
  /deep/ .ant-input-group {
    width: 125px;
  }
  .btn_addandsub {
    height: 30px;
    width: 25px;
    padding: 0;
    border-color: #f9f9f9;
    background-color: #f9f9f9;
    .add {
    }
  }
}
.ischeck {
  /deep/.ant-input-disabled {
    color: black;
  }
}
</style>